package com.gxa.customer.service.Impl;

import com.gxa.common.pojo.SysMenu;
import com.gxa.common.pojo.SysRole;
import com.gxa.customer.mapper.PermissionMapper;
import com.gxa.customer.mapper.RoleMapper;
import com.gxa.customer.service.PermissionService;
import com.gxa.customer.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<SysRole> selectRolesByUserId(Long userId) {

        List<SysRole> sysRoles=roleMapper.selectRolesByUserId(userId);
        return sysRoles;
    }
}
